package com.glodon.paas.monitor.server.biz.mapper;

import java.util.ArrayList;

import org.apache.ibatis.annotations.Param;

import com.glodon.paas.monitor.server.biz.domain.MonitorItemSendRulesEntity;
import com.glodon.paas.monitor.server.dto.MonitorSendRulesDTO;

public interface MonitorItemSendRulesMapper {

	int deleteByPrimaryKey(Long id);

	int insert(MonitorItemSendRulesEntity record);

	int insertSelective(MonitorItemSendRulesEntity record);

	MonitorItemSendRulesEntity selectByPrimaryKey(Long id);

	MonitorItemSendRulesEntity selectByItemId(@Param("itemId") Long itemId);

	MonitorItemSendRulesEntity selectBySendId(@Param("sendId") Long sendId);

	MonitorItemSendRulesEntity selectByAlarmId(@Param("alarmId") Long alarmId);

	ArrayList<MonitorSendRulesDTO> queryMonitorItemSendRules(MonitorSendRulesDTO record);

	int updateByPrimaryKeySelective(MonitorItemSendRulesEntity record);

	int updateByPrimaryKey(MonitorItemSendRulesEntity record);
}